$(function() {
	admin.config.init();
});
Namespace('admin.config',{
	init:function() {
	},
	doUpdate:function(){
		var keys = new Array();
		var values = new Array();
		keys.push($('input[name="radioMass"]:checked').attr("key"));
		keys.push($('input[name="radioCustom"]:checked').attr("key"));
		values.push($('input[name="radioMass"]:checked').attr("value"));
		values.push($('input[name="radioCustom"]:checked').attr("value"));
		$.post(contextPath + '/admin/config/updateFuncParam', {keys:keys,values:values}, function (result) {
			if(result.code==0) {
				top.showInfo("修改成功");
			} else {
				top.showInfo("修改失败:"+result.msg);
			}
        });
	}

});